Allbugs { var colorToggle } Bug TestScope { var width width = 50 x = 25 y = 75 do rect1(width) define rect1 using width { do rect(width, 40) } define rect using w, h { do twoSides(0) do twoSides(1) switch { case h < 2 return 0 case h >= 2 w = 0.95 * w do rect(w, h - 1) } } define twoSides using c { switch { case c = 0 color blue case c = 1 color red } move w turn 90 move h turn 90 } }